package com.lengchangjing.BehavioralPatterns.InterpreterPattern;

public class TerminalExpression extends AbstractExpression{

    private String key;

    public TerminalExpression(String key)
    {
        this.key = key;
    }

    @Override
    public String Interpret(Context ctx) {
        //终结符表达式的解释操作
        return ctx.Lookup(key);
    }
}
